package itheima.com.Test;

import java.util.Properties;
import java.util.Set;

public class Test7 {
    public static void main(String[] args) {
        Properties prop = new Properties();

    prop.setProperty("东邪","西毒");
    prop.setProperty("南帝","北丐");

//        System.out.println(prop);

        String value = prop.getProperty("东邪");
        System.out.println(value);

        Set<String> keys = prop.stringPropertyNames();
        for (String key : keys) {
            String val = prop.getProperty(key);
            System.out.println(key+"="+val);
        }

    }
}
